package sbpme.designer.model;

import java.io.Serializable;


public class Transition extends AbstractModel implements Serializable {

	private static final long serialVersionUID = 5934479590966235186L;
	
	private Activity source;
	private Activity target;

	public Transition(Activity source, Activity target) {
		this.source = source;
		this.target = target;

		source.addSourceTransition(this);
		target.addTargetTransition(this);
	}

	public Activity getSource() {
		return source;
	}

	public void setSource(Activity source) {
		this.source = source;
		notifyObservers();
	}

	public Activity getTarget() {
		return target;
	}

	public void setTarget(Activity target)	{
		this.target = target;
		notifyObservers();
	}
	
}
